package ooday02;

public class Dog01 extends Animal01{
    String breed;

    Dog01(String name,int age,String color,String breed){
        super(name,age,color);
        this.breed = breed;
    }

    void lookHome(){
        System.out.println(name+"正在开门");
    }

    void drink(){
        System.out.println(name+"是一只"+color+"颜色的"+age+"岁的"+breed+"它现在正在喝水");
    }
}
